import os
import subprocess

import mimetypes

from damn.transcoder import TranscoderFailedException, BaseTranscoder


class MidiSoundImageTranscoder(BaseTranscoder):
  transcoder = True
  convert_map = {"audio/midi" : ["image/png"],}
  options_map = {"audio/midi" : [],}
  
  def transcode(self, anAssetReference, dstFormat, **kwargs):  
    filePath = self._get_path(anAssetReference, dstFormat, **kwargs) 
    return filePath
    
  def _get_path(self, anAssetReference, dstFormat, kwargs):  
    return os.path.abspath(os.path.join(os.path.dirname(__file__), 'icon.png'))

